import Mock from "mockjs";

Mock.mock('/api/v1/sys/menu/self', 'get', {
  code: 0,
  msg: 'success',
  data: [
    {
      id: 1,
      icon: 'Setting',
      name: '系统管理',
      children: [
        {
          id: 2,
          icon: 'User',
          routerName: 'SysUser',
          path: '/sys-user',
          component: 'sysUser',
          name: '用户管理'
        },
        {
          id: 3,
          icon: 'Avatar',
          routerName: 'SysRole',
          path: '/sys-role',
          component: 'sysRole',
          name: '角色管理'
        },
        {
          id: 4,
          icon: 'Grid',
          routerName: 'SysMenu',
          path: '/sys-menu',
          component: 'sysMenu',
          name: '菜单管理'
        }
      ]
    }
  ]
})
